package com.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.product.entity.Orders;
import com.product.to.AddOrderTo;
import com.product.to.UpdateOrderTo;
import com.product.utils.PageUtils;

import java.util.List;

public interface IOrdersService extends IService<Orders> {

    void deleteOrders(List<Long> orderIds);

    void deleteOrder(Long orderId);

    void updateOrder(UpdateOrderTo order);

    void addOrder(AddOrderTo order);

    PageUtils getAllOrder(Integer size, Integer current, Integer orderState, String customerName, Long orderId,Integer timeOrderBy);

    PageUtils getAllOrderByItem(Integer size, Integer current, Integer orderState, String customerName, Long orderId,Integer timeOrderBy);
}
